using MediatR;
using SumerCoreDevOps.Domain.Entities;

namespace SumerCoreDevOps.Application.NodeRegistration.Commands;

/// <summary>
/// 生成建立连接令牌命令（Generate Join Token Command）
/// </summary>
public record GenerateTokenCommand(
    string? Name = null,
    string? Description = null,
    int? ExpiresInHours = 24,
    int? MaxUsageCount = 1,
    string? CreatedBy = null
) : IRequest<NodeJoinToken>;
